package com.linkage.bookshop.service.inter;

import java.util.List;

import com.linkage.bookshop.model.User;

public interface UserService {
	//注册用户名检查
	public boolean checkUsername(String username);
	
	//注册
	public boolean addUser(String username, String password);
	
	//得到昵称
	public String loadNickname(String username);
	
	//得到余额
	public Double loadWealth(String username);
	
	//修改密码
	public boolean modifyPassword(String username,String Password);
	
	//修改昵称
	public boolean modifyNickname(String username,String nickname);
	
	//列出普通用户
	public List<User> listMembers(int numPerPage,int pageNum);
	
	//列出管理员
	public List<User> listAdmins(int numPerPage,int pageNum);
	
	//封禁普通用户
	public boolean lockMember(int id);

	//封禁管理员
	public boolean lockAdmin(int id);
	
	//解封普通用户
	public boolean unlockMember(int id);
	
	//解封管理员
	public boolean unlockAdmin(int id);
	
	//添加管理员
	public boolean addAdmin(User admin);

	public boolean checkPassword(String username, String password);

	public User loadMember(String username);

	public User loadAdmin(String username);

	


	
		
}
